import request from '@/utils/request';

// 查询最新新闻
export const queryNewsLatestApi = () => {
  return request({
    url: '/news_latest'
  });
};

// 查询前一天的新闻
export const queryNewsBeforeApi = (time) => {
  return request({
    url: '/news_before',
    params: {
      time
    }
  });
};

// 查询用户信息
export const queryUserInfoApi = () => {
  return request({
    url: '/user_info'
  });
};
